package com.baichang.taoshunda.dao;

import com.baichang.framework.dao.BaseDao;
import com.baichang.framework.model.Page;
import com.baichang.taoshunda.entity.RecommendCompany;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/1/29 0029.
 */
public interface RecommendCompanyDao extends BaseDao<RecommendCompany> {
    /**
     * 查询最新创建的数据id
     * @return
     */
    Map<String,Object> queryInfoId();

    /**
     * 当前商家是否是推荐商家
     * @param busId
     * @return
     */
    Map<String,Object> queryRecommendBus(Integer busId);

    /**
     * 修改状态
     * @param id
     * @param status
     * @return
     */
    int updateStaus(Integer id, Integer status);

    /**
     * 查询我的推荐商家
     * @param busId
     * @return
     */
    Map<String,Object> queryRecommendBusDetails(Integer busId);

    /**
     * 推荐商家审核
     * @param nowPage
     * @param pageSize
     * @param businessName
     * @return
     */
    Page queryAuditingBusiness(int nowPage, int pageSize, String businessName);

    /**
     *同意推荐商家审核
     * @param id
     * @param picture
     * @param code
     *@param startTime
     * @param endTime @return
     */
    int replaceBusinessPicture(Integer id, String picture, Integer code, String startTime, String endTime);

    /**
     *
     * @param id
     * @param picture
     * @return
     */
    int updatePic(Integer id, String picture);

    /**
     *
     * @param id
     * @return
     */
    List<Map<String, Object>> queryCompanyId(Integer id);

    /**
     *
     * @param busId
     * @return
     */
    Map<String,Object> queryRecommendDetails(Integer busId);

    /**
     *
     * @param busId
     * @return
     */
    List<Map<String,Object>> queryAllHistory(Integer busId);

    /**
     *
     * @param recommendId
     * @param status
     * @return
     */
    int updateRecommendStaus(Integer recommendId, int status);

    /**
     *
     * @param busId
     * @return
     */
    Map<String,Object> queryCompanyIdInfo(Integer busId);

    /**
     *
     * @param busId
     * @return
     */
    Map<String,Object> getAuditRecommentdBusiness(Integer busId);
}
